package com.springboot.demo.service.impl;

import com.springboot.demo.domain.Dictionary;
import com.springboot.demo.repository.DictionaryRepository;
import com.springboot.demo.service.DictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DictionaryServiceImpl implements DictionaryService {
    @Autowired
    DictionaryRepository dictionaryRepository;

    @Override
    public Dictionary findDictionaryByDictionaryCodeAndParentDictionaryCode(String dictionaryCode, String parentDictionaryCode) {
        return dictionaryRepository.findDictionaryByDictionaryCodeAndParentDictionaryCode(dictionaryCode, parentDictionaryCode);
    }

}
